﻿using System;
using DataObject.Adv;

public partial class Controls_Common_Partner : System.Web.UI.UserControl
{
    protected string IsShowAdv = "none";

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            ListAdv();
    }

    private void ListAdv()
    {
        var lstAdv = AdvController.Adv_GetPartner();
        if (lstAdv.Count > 0)
        {
            rptAdv.DataSource = lstAdv;
            rptAdv.DataBind();

            IsShowAdv = "block";
        }
    }
}